#include "head.h"
int init_status(status_t* status,int num){
    status->num=num;
    status->thread_id=(pthread_t*)malloc(num*sizeof(pthread_t));
    memset(&status->queue,0,sizeof(queue_t));
    pthread_mutex_init(&status->lock,NULL);
    pthread_cond_init(&status->cond,NULL);
    
    status->exit_flag=0;
    return 0;
}
